\documentclass[10pt]{article} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 选择Windows操作系统写中文文档
\usepackage[quiet]{xeCJK}    % 支持中文排版，适用于 XeLaTeX 编译器
\setCJKmainfont{SimSun}      % 设置默认中文字体为宋体
\setCJKsansfont{SimHei}      % 设置默认中文字体无衬线字体为黑体
\setCJKmonofont{FangSong}    % 设置等宽字体为仿宋

\usepackage{geometry}
\usepackage{setspace} % 行距控制
\geometry{a4paper, left=1.5cm, right=1.5cm, top=1.5cm, bottom=2.0cm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 使用 \pageref{LastPage} 命令来引用最后一页的页码
\usepackage{lastpage}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 设置页眉、页脚以及页码的位置和样式
\usepackage{fancyhdr}% 用于自定义页眉和页脚
\pagestyle{fancy}
\fancyhf{} % 清除默认的页眉和页脚
\fancyfoot[C]{第 \thepage\ 页，共 \pageref{LastPage}\ 页}
\renewcommand{\headrulewidth}{0pt} % 去掉页眉的横线

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{ctex} % ctex 提供了全面的中文排版支持

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 数学符号
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage{amsfonts}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 横向排列的任务列表，例如使用小写字母作为标签，每行显示 3 个任务：\begin{tasks}[label=(\alph*)](3) 
\usepackage{tasks}
\settasks{
  label = \arabic*. ,   % 使用阿拉伯数字加点，如 "1.", "2."
  label-width = 1.5em,  % 可选：调整标签宽度
  item-indent = 2em,    % 可选：调整整体缩进
  before-skip = 0.5ex,  % 可选：任务前的间距
  after-skip = 0.5ex    % 可选：任务后的间距
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 用于处理图像，插入、缩放、旋转以及调整图像在文档中的位置
\usepackage{graphicx}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 用于在数学模式下生成粗体符号，例如 \bm{\alpha} 会生成一个粗体的alpha
\usepackage{bm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 创建更复杂的表格结构，提供了更多的列类型选项和对齐方式
\usepackage{array}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%定制列表环境的格式和样式，例如使用阿拉伯数字编号：\begin{enumerate}[label=\arabic*]
\usepackage{enumitem}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 填写课程信息：
\newcommand{\CourseName}{课程名称}
\newcommand{\CourseNumber}{123456789}
\newcommand{\CourseStudents}{课程班级}
\newcommand{\CourseTerm}{2024 $\sim$ 2025 学年 第 二 学期}
\newcommand{\ExamAB}{A}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%得分框缩写
\newcommand{\ScoreBox}{
\hspace{-1.5cm}{\renewcommand{\arraystretch}{2}
\begin{tabular}{|>{\centering\arraybackslash}p{0.8cm}|>{\centering\arraybackslash}p{1.2cm}|} \hline 得分 &  \\  \hline \end{tabular}}
\hspace{0.3cm}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\begin{center}
\includegraphics [width=0.85\textwidth, height=4.1cm]{lixin_motto.png}
\end{center}

\vspace{-0.5cm}

\begin{center}
{\Large \bf 上海立信会计金融学院期终考试 \,\, \underline{\,\ExamAB\, } 卷 \,\, 答题纸}

\vspace{0.3cm}

{\large \CourseTerm }

\vspace{0.3cm}

{\large \bf \underline{\,\CourseStudents\,} 《\underline{\,\CourseName\,}》 课程代码：\underline{\,\CourseNumber\,} }

\vspace{0.3cm}

（本场考试属\underline{ \, 闭 \, }卷考试，考试时间共\underline{ \, 90 \,  }分钟，不准使用计算器）共\underline{ \, \pageref{LastPage} \, }页 

\vspace{0.7cm}

班级 \underline{\hspace{3.5cm}} 学号 \underline{\hspace{3.5cm}} 姓名 \underline{\hspace{3.5cm}} 

\end{center}

\vspace{-0.2cm}

\begin{table}[h]
\centering
\renewcommand{\arraystretch}{1.4}
\begin{tabular}{
|>{\centering\arraybackslash}p{1.2cm}|>{\centering\arraybackslash}p{1.2cm}
|>{\centering\arraybackslash}p{1.2cm}
|>{\centering\arraybackslash}p{1.2cm}|>{\centering\arraybackslash}p{1.2cm}
|>{\centering\arraybackslash}p{1.2cm}
|>{\centering\arraybackslash}p{1.2cm}
|>{\centering\arraybackslash}p{1.2cm}|>{\centering\arraybackslash}p{1.2cm}
|>{\centering\arraybackslash}p{1.2cm}|}
\hline
题号 &一&二&三&四&五&六&总分&合成人签名&审核人签名 \\
\hline
得分 $\,\,\,\,\,\,\,\,$ &&&&&&&&& \\
\hline
\end{tabular}
\end{table}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ScoreBox \begin{minipage}[c]{10cm} {\bf 一、} 选择题（每题 2 分，共 16 分）\end{minipage}

\vspace{0.5cm}
\begin{tasks}(8)
\task \underline{\hspace{1cm}}
\task \underline{\hspace{1cm}}
\task \underline{\hspace{1cm}}
\task \underline{\hspace{1cm}}
\task \underline{\hspace{1cm}}
\task \underline{\hspace{1cm}}
\task \underline{\hspace{1cm}}
\task \underline{\hspace{1cm}}
\end{tasks}

\vspace{0.5cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ScoreBox \begin{minipage}[c]{10cm} {\bf 二、} 填空题（每题 3 分，共 24 分）\end{minipage}

\vspace{0.5cm}
\begin{tasks}(4)
\task \underline{\hspace{2cm}}
\task \underline{\hspace{2cm}}
\task \underline{\hspace{2cm}}
\task \underline{\hspace{2cm}}
\vspace{0.5cm}
\task \underline{\hspace{2cm}}
\task \underline{\hspace{2cm}}
\task \underline{\hspace{2cm}}
\task \underline{\hspace{2cm}}
\end{tasks}

\vspace{0.5cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ScoreBox \begin{minipage}[c]{10cm} {\bf 三、} 计算题A（每小题 3 分，共 15 分）\end{minipage}
\vspace{0.5cm}
\begin{enumerate}\itemsep=4cm
    \item 
    \item 
    \item 
    \item 
    \item 
\end{enumerate}

\vspace{4cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ScoreBox \begin{minipage}[c]{10cm} {\bf 四、} 计算题B（每小题 3 分，共 15 分）\end{minipage}
\vspace{0.5cm}
\begin{enumerate}\itemsep=4cm
    \item 
    \item 
    \item 
    \item 
    \item 
\end{enumerate}

\vspace{4cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ScoreBox \begin{minipage}[c]{10cm} {\bf 五、} 计算题C（每小题 3 分，共 15 分）\end{minipage}
\vspace{0.5cm}
\begin{enumerate}\itemsep=4cm
    \item 
    \item 
    \item 
    \item 
    \item 
\end{enumerate}

\vspace{4cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ScoreBox \begin{minipage}[c]{10cm} {\bf 六、} 计算题D（每小题 3 分，共 15 分）\end{minipage}
\vspace{0.5cm}
\begin{enumerate}\itemsep=3.5cm
    \item 
    \item 
    \item 
    \item 
    \item 
\end{enumerate}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}

